package com.antrain;

import com.antrain.core.ORMConfig;
import com.antrain.core.ORMSession;
import com.antrain.test.User;

/**
 * Hello world!
 *
 */
public class App {
    public static void main(String[] args) {
        ORMConfig ormConfig = new ORMConfig();
        ORMSession session = ormConfig.bulid();
        User user = new User();
        user.setUsername("李四");
        session.insert(user);
        user = (User) session.queryOne(User.class, 2);
        System.out.println(user);
        session.delete(user);
    }
}
